package tw.rescue.model.slim3.model;

import java.io.Serializable;
import java.util.List;

import org.slim3.datastore.Attribute;
import org.slim3.datastore.Model;

import com.google.appengine.api.datastore.Key;

@Model(schemaVersion = 1)
public class Category extends BaseModel implements Serializable {

	public final static String KIND = "Identity";
    private static final long serialVersionUID = 1L;

	@Attribute(primaryKey = true)
	private Key key;

	@Attribute(version = true)
    private Long version;

	private List<Key> administrators;  //記錄管理此 Category 的 admin Account 的 key 
	private String label; // 內部英文識別字, 用於產生 key 的 name 成份, 也用於存入  message 的 categories, 如 sos 版, find_people 版
	private String displayName; // 顯示用的名稱,如 求援, 尋人
	
	public void setKey(Key key) {
		this.key = key;
	}

	public Key getKey() {
		return key;
	}

	public void setVersion(Long version) {
		this.version = version;
	}

	public Long getVersion() {
		return version;
	}

	public void setAdministrators(List<Key> administrators) {
		this.administrators = administrators;
	}

	public List<Key> getAdministrators() {
		return administrators;
	}
	
	@Override
	public void format() {
		// TODO Auto-generated method stub
	}

	@Override
	public void reset() {
		// TODO Auto-generated method stub
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getLabel() {
		return label;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	public String getDisplayName() {
		return displayName;
	}
}
